import request from '@/utils/request'

// 查询sku消费者（铸造机机）列表
export function listConsumer(query) {
  return request({
    url: '/system_setting/consumer/list',
    method: 'get',
    params: query
  })
}

// 查询sku消费者（铸造机机）详细
export function getConsumer(consumerId) {
  return request({
    url: '/system_setting/consumer/' + consumerId,
    method: 'get'
  })
}

// 新增sku消费者（铸造机机）
export function addConsumer(data) {
  return request({
    url: '/system_setting/consumer',
    method: 'post',
    data: data
  })
}

// 修改sku消费者（铸造机机）
export function updateConsumer(data) {
  return request({
    url: '/system_setting/consumer',
    method: 'put',
    data: data
  })
}

// 删除sku消费者（铸造机机）
export function delConsumer(consumerId) {
  return request({
    url: '/system_setting/consumer/' + consumerId,
    method: 'delete'
  })
}
